// 
// Decompiled by Procyon v0.5.36
// 

package com.akamai.botman;

import android.view.*;
import java.util.*;

final class r
{
    public static java.util.ArrayList<android.view.View> a(final android.view.View view) throws java.lang.Exception {
        if (!(view instanceof android.view.ViewGroup)) {
            final java.util.ArrayList<android.view.View> list;
            (list = new java.util.ArrayList<android.view.View>()).add(view);
            return list;
        }
        final java.util.ArrayList<android.view.View> list2 = new java.util.ArrayList<android.view.View>();
        final android.view.ViewGroup viewGroup = (android.view.ViewGroup)view;
        list2.add(view);
        for (int i = 0; i < viewGroup.getChildCount(); ++i) {
            final java.util.ArrayList<java.lang.Object> list3 = new java.util.ArrayList<java.lang.Object>();
            list3.addAll(a(viewGroup.getChildAt(i)));
            list2.addAll((java.util.Collection<? extends android.view.View>)list3);
        }
        return list2;
    }
}
